package com.cxt.service;

//import com.baomidou.entity.CarpoolInfo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.cxt.dto.CarpoolAddDto;
import com.cxt.dto.CarpoolInfoDto;
import com.cxt.dto.CarpoolTjDto;
import com.cxt.entity.CarpoolInfo;
import com.cxt.vo.CarpoolInfoVo;
import com.cxt.vo.CarpoolPreviewVo;

import java.util.List;

/**
 * <p>
 * 拼车信息表 服务类
 * </p>
 *
 * @author baomidou
 * @since 2025-02-27
 */
public interface ICarpoolInfoService extends IService<CarpoolInfo> {

    void addCarpoolInfo(CarpoolInfo carpoolInfo);

    Boolean addCarpoolInfo(CarpoolInfoDto carpoolInfoDto);

    List<CarpoolPreviewVo> previewCarpoolInfo();

    List<CarpoolPreviewVo> previewCarpoolInfoByID();

    CarpoolInfoVo getCarpoolInfoByID(Long id);

    Boolean addCarpoolInfo(CarpoolAddDto carpoolAddDto);
    public Boolean removeUser(CarpoolAddDto carpoolAddDto);

    Boolean removeJoin(Long id);

    List<CarpoolPreviewVo> previewCarpoolInfoByStart(CarpoolTjDto carpoolInfoDto);
}

